package com.ferry.domain.view;

import com.ferry.domain.Wall;
import lombok.Data;

@Data
public class WallView {

    private Long id;
    private String name;
    private String viewPath;
    private String price;
    private String typeName;
    private String sort;
    private String size;

    private String realPath;

    public WallView(Wall wall) {
        this.id = wall.getWallId();
        this.name = wall.getWallName();
        this.viewPath = wall.getWallSmallPath();
        this.price = wall.getWallPrice()+" C币";
        this.typeName = wall.getWallTypeName();
        this.sort = wall.getWallSort() + "";
        this.size = wall.getWallWidth() + "×" + wall.getWallHeight();
        this.realPath =wall.getWallPath();
    }
}
